<?php
/**
{
    "teacherEduId": "INT //教育经历id",
    "teacherId": "INT //老师id@foreign::tbl_teacher; @search; ",
    "schoolName": "VARCHAR //院校@search; ",
    "major": "VARCHAR //专业@search; ",
    "levelId": "INT //学历@foreign::tbl_level; @search; ",
    "startTime": "VARCHAR //开始时间",
    "endTime": "VARCHAR //结束时间"
}
 */

class TeacherEdu extends Base
{
    
	public $teacherEduId= '';//教育经历id
	public $teacherId= '';//老师id@foreign::tbl_teacher;@search;
	public $schoolName= NULL;//院校@search;
	public $major= NULL;//专业@search;
	public $levelId= "0";//学历@foreign::tbl_level;@search;
	public $startTime= NULL;//开始时间
	public $endTime= NULL;//结束时间

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_teacher_edu';
    }
    
    public  function key(){
        return 'teacherEduId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'TeacherEdu';
    }
    
    public  function field()
    {
        return array (  'teacherEduId' =>   array (    0 => 'INT',    1 => 11,    2 => '教育经历id',  ),  'teacherId' =>   array (    0 => 'INT',    1 => 11,    2 => '老师id@foreign::tbl_teacher;@search;',  ),  'schoolName' =>   array (    0 => 'VARCHAR',    1 => 200,    2 => '院校@search;',  ),  'major' =>   array (    0 => 'VARCHAR',    1 => 200,    2 => '专业@search;',  ),  'levelId' =>   array (    0 => 'INT',    1 => 11,    2 => '学历@foreign::tbl_level;@search;',  ),  'startTime' =>   array (    0 => 'VARCHAR',    1 => 20,    2 => '开始时间',  ),  'endTime' =>   array (    0 => 'VARCHAR',    1 => 20,    2 => '结束时间',  ),);
    }


}